package org.rslai.tcedit.jms.service;

import org.rslai.tcedit.jms.JmsService;

/**
 * 解压缩文件<br/>
 * 
 * @author rslai
 */
public class UnZip implements JmsService {
	private static final long serialVersionUID = 1454724689120309547L;

	private String zipFileName;
	private String destDir;

	/**
	 * 构造函数
	 * @param zipFileName 需要解的压缩文件路径+文件名
	 * @param destDir 解压到的目录
	 */
	public UnZip(String zipFileName, String destDir) {
		this.zipFileName = zipFileName;
		this.destDir = destDir;
	}

	/**
	 * 覆写 toString() 方法
	 */
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("[Method name: UnZip {");
		sb.append("zipFileName:" + this.zipFileName);
		sb.append(", destDir:" + this.destDir);
		sb.append("}]");
		return sb.toString();
	}

	@Override
	public void run() {
		//new org.rslai.util.compress.Zip().unZip(zipFileName, destDir);
		System.out.println("===============jms UnZip!");
	}

}
